1: | from(X) | → cons(X,n__from(s(X))) | |
2: | first(0,Z) | → nil | |
3: | first(s(X),cons(Y,Z)) | → cons(Y,n__first(X,activate(Z))) | |
4: | sel(0,cons(X,Z)) | → X | |
5: | sel(s(X),cons(Y,Z)) | → sel(X,activate(Z)) | |
6: | from(X) | → n__from(X) | |
7: | first(X1,X2) | → n__first(X1,X2) | |
8: | activate(n__from(X)) | → from(X) | |
9: | activate(n__first(X1,X2)) | → first(X1,X2) | |
10: | activate(X) | → X | |
11: | FIRST(s(X),cons(Y,Z)) | → ACTIVATE(Z) | |
12: | SEL(s(X),cons(Y,Z)) | → SEL(X,activate(Z)) | |
13: | SEL(s(X),cons(Y,Z)) | → ACTIVATE(Z) | |
14: | ACTIVATE(n__from(X)) | → FROM(X) | |
15: | ACTIVATE(n__first(X1,X2)) | → FIRST(X1,X2) | |